package com.syzygy.mapper;

import com.syzygy.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface UserMapper {
    User getUserByUserId(@Param("userId") int userId);

    int createUser(@Param("username") String username,
                   @Param("password") String password,
                   @Param("nickname") String nickname,
                   @Param("phone") int phone,
                   @Param("headSculptureId") String headSculptureId,
                   @Param("headSculptureDocumentName") String headSculptureDocumentName,
                   @Param("personalIntroduction") String personalIntroduction
                   );

    User getUserByUserUsernameAndPassword(@Param("username") String username,
                                          @Param("password") String password);

    int editUser(@Param("username") String username,
                 @Param("password") String password,
                 @Param("nickname") String nickname,
                 @Param("phone") int phone,
                 @Param("headSculptureId") String headSculptureId,
                 @Param("headSculptureNewDocumentName") String headSculptureNewDocumentName,
                 @Param("personalIntroduction") String personalIntroduction,
                 @Param("userId") int userId);




}
